package org.biubiu0002.baiblog.core.service;

import org.biubiu0002.baiblog.core.model.vo.req.FeedReqVo;
import org.biubiu0002.baiblog.core.model.vo.res.FeedResVo;

/**
 * @Author: biubiu0002
 * @Date: 2022/8/2 18:14
 **/
public interface FeedService {
    /**
     * 用户feed
     * @param feedReqVo vo
     * @return resVo
     */
    FeedResVo all(FeedReqVo feedReqVo);

    /**
     * 用户发布帖子推送到粉丝feed中
     * @param userUid uid
     * @param shareId 帖子id
     * @param createTime 创建时间
     */
    void sendToFans(String userUid, String shareId, Long createTime);

    /**
     * 关注取关用户
     * @param uid 当前用户
     * @param followUid 目标用户
     * @param isFollow 关注/取关
     */
    void handleFollow(String uid, String followUid, Integer isFollow);
}
